then put a 10k resistor across the connector contacts. Fools the ECU into thinking the solenoid is still connected. Just fit the resistor into the plug and tape it up a bit. Fairly easy way to do this assuming the solenoid has no leaks?
Vacuum line source on the EGR valve can be removed and folded over then taped to seal it up. Just another way to do this too.